/*
*基准管理
*/

import React from 'react';
import {connect} from 'dva';;
import {Tabtitle} from '../../../components';
import moment from 'moment';
import {Card, Row, Col, Table, Pagination} from 'antd';
import DefinitionList from '../../../components/DefinitionList';
import AddBenchmark from '../components/AddBenchmark';
import BenchmarSearch from '../components/BenchmarSearch';
/**
 * [ToolBar 工具栏]
 * 引用组件
 * benchmarSearch 基准搜索
 * AddBenchmark 新增复合基准
 */
const ToolBar = (props) => {
	console.log(112222222,props)
  return (
    <Row type="flex" justify="space-between" className='toolbar'>
      <Col>
        <BenchmarSearch {...props} />
      </Col>
      <Col>
      	<AddBenchmark {...props}/>
      </Col>
    </Row>
  )
}

/**
 * [ContentBenchmark 查询结果]
 * 引用组件 
 * BenchmarkListTable 基准列表
 */
import BenchmarkListTable from '../components/BenchmarkTable';

const ContentBenchmark = (props) => {
  console.log('ContentBenchmark>>',props)
  return(
    <Row>
    	<BenchmarkListTable {...props}/>
    </Row>
  )
}

/**
 * [BenchmarkMgt 基准管理主组件]
 */
const BenchmarkMgt = ({benchmarkMgt}) => {
	console.log('BenchmarkMgt',benchmarkMgt)
	return (
    <div>
      <Tabtitle value={'基准管理'}/>
        <div className="content-inner" >
      		<ToolBar  {...benchmarkMgt}  location={location} />
        	<ContentBenchmark {...benchmarkMgt}/>
      	</div>
    </div>
  );
}

export default connect(({ benchmarkMgt }) => ({ benchmarkMgt }))(BenchmarkMgt)